﻿
namespace NoNameGoServer.Client.Commands {
    public class SetVariableCommand : Command {
        private readonly string _variableName;
        private readonly string _value;

        public SetVariableCommand(string variableName, string value) {
            _variableName = variableName;
            _value = value;
        }

        public override void Execute(NNGSClient nngsClient) {
            nngsClient.SendAsync(this, string.Format("toggle {0} {1}\n", _variableName, _value), null);
        }
    }
}
